<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <script type="text/javascript" src="../jquery/jquery.min.js"></script>
    <title>testQuickBi</title>
    <script>
        function search() {
            var course_name = document.getElementById("course_name").value;
            var starttime = document.getElementById("starttime").value;
            var endtime = document.getElementById("endtime").value;
            alert("course_name="+course_name+",starttime="+starttime+",endtime="+endtime);
            //var src = "https://das.base.shuju.aliyun.com/shulaibao/preview.htm?module=dashboard&pageId=456dec0e-5f59-404c-bfb1-41be067917bf&accessToken=";
            var src = "https://das.base.shuju.aliyun.com/shulaibao/preview.htm?module=dashboard&pageId=e19fd4d7-08da-43d8-a135-818c713c7426&accessToken=";
            src = src + "${token}" + "#027487eb-86c9-4578-9c23-8aaad29e9905*=*{%22string%22:{%22isCondition%22:true,%22condition%22:{%22type%22:%22or%22,%22item%22:[{%22type%22:%22=%22,%22left%22:{%22pathId%22:%22schema22516f3a-8ff3-4196-8796-ef60e7cf6880.7ee6dd2e-fb99-4749-a1ee-346820263e7d_behavior.[N7ee6dd_course_name].[N7ee6dd_course_name].[N7ee6dd_course_name]%22},%22right%22:%22"+encodeURI(course_name)+"%22}]},%22enumerate%22:{%22type%22:%22in%22}}}";
            document.getElementById("04").src = src;
        }
    </script>
</head>

<body>
    testQuickBi
    <p>${token}</p>
    <p>${invalidTime}</p>
    课程名:<input type="text" name="course_name" id="course_name"><br><br>
    时间范围:<input type="text" name="time" id="starttime"> ~
            <input type="text" name="time" id="endtime"><br><br>
    <input type="button" name="search" id="search" value="查询" onclick="search()"><br>
    无查询仪表板
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" width="100%" height="100%" id="01"
            src="https://das.base.shuju.aliyun.com/shulaibao/preview.htm?module=dashboard&pageId=456dec0e-5f59-404c-bfb1-41be067917bf&accessToken=${token}">
    </iframe>
    有查询仪表板隐藏
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" width="100%" height="100%" id="02"
            src="https://das.base.shuju.aliyun.com/shulaibao/preview.htm?module=dashboard&pageId=9bb52309-1891-45b1-83ef-030581bf7e5b&accessToken=${token}">
    </iframe>
    有查询仪表板不隐藏
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" width="100%" height="100%" id="03"
            src="https://das.base.shuju.aliyun.com/shulaibao/preview.htm?module=dashboard&pageId=e19fd4d7-08da-43d8-a135-818c713c7426&accessToken=${token}">
    </iframe>
    有查询仪表板不隐藏
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" width="100%" height="100%" id="04"
            src="https://das.base.shuju.aliyun.com/shulaibao/preview.htm?module=dashboard&accessToken=${token}&pageId=e19fd4d7-08da-43d8-a135-818c713c7426">
    </iframe>
</body>
</html>